package com.second.order.controller;

import com.second.common.pojo.Member;
import com.second.common.vo.Result;
import com.second.order.service.MemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: second
 * @description:
 * @author: 胡萌
 * @create: 2023-05-27 16:56
 **/
@RestController
@RequestMapping("/order/member")
@Api(tags = "账户接口类")
public class MemberController {
    @Autowired
    private MemberService memberService;

    @ApiOperation("账户查询")
    @PostMapping("/queryAllMemberById/{memberId}")
    public Result queryAllMemberById(@PathVariable String memberId){

        Member all = memberService.findAll(memberId);

        return Result.success(all);
    }

}
